package com.lu.pojo.exception;

/**
 * @author luzhenfang
 * @date 2020 05 16
 * @description 自定义异常类
 */
public class MyException extends Exception {
    private String msg;

    public MyException(String msg) {
        this.msg = msg;
    }

    @Override
    public void printStackTrace() {
        System.out.println(this.msg);
   }
}
